/*****************************************************************************************
   
   Copyright (c) Microsoft Corporation. All rights reserved.

   Use of this code sample is subject to the terms of the Microsoft
   Permissive License, a copy of which should always be distributed with
   this file.  You can also access a copy of this license agreement at:
   http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx

 ****************************************************************************************/

using System;

namespace GrooveWebServicesV12Helpers
{
	/// <summary>
	/// Summary information about a contact, as returned from a search of a ContactDirectory
	/// </summary>
	public class ContactSummary
	{
		private GrooveEventsWebService.ContactSummary m_ContactSummary;

		public ContactSummary(GrooveEventsWebService.ContactSummary i_ContactSummmary)
		{
			m_ContactSummary = i_ContactSummmary;
		}

		#region ContactSummary Properties And Methods

		/// <summary>
		/// The ContactURI
		/// </summary>
		public string URI
		{
			get
			{
				return m_ContactSummary.URI;
			}
		}

		/// <summary>
		/// The contact's given name
		/// </summary>
		public string GivenName
		{
			get
			{
				return m_ContactSummary.GivenName;
			}
		}

		/// <summary>
		/// The contact's family name
		/// </summary>
		public string FamilyName		
		{
			get
			{
				return m_ContactSummary.FamilyName;
			}
		}

		/// <summary>
		/// The contact's full name
		/// </summary>
		public string FullName		
		{
			get
			{
				return m_ContactSummary.FullName;
			}
		}

		/// <summary>
		/// The contact's business email address
		/// </summary>
		public string BusinessEmail		
		{
			get
			{
				return m_ContactSummary.BusinessEmail;
			}
		}

		/// <summary>
		/// The contact's personal email address
		/// </summary>
		public string PersonalEmail		
		{
			get
			{
				return m_ContactSummary.PersonalEmail;
			}
		}

		/// <summary>
		/// The contact's city
		/// </summary>
		public string City		
		{
			get
			{
				return m_ContactSummary.City;
			}
		}

		/// <summary>
		/// The contact's state
		/// </summary>
		public string State		
		{
			get
			{
				return m_ContactSummary.State;
			}
		}

		#endregion
	}
}
